package com.lt.exam.zhuhemoshi;

import com.lt.exam.zhuhemoshi.ShiXian.BuMen;
import com.lt.exam.zhuhemoshi.ShiXian.OneYiSheng;
import com.lt.exam.zhuhemoshi.ShiXian.YiSheng;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.exam.zhuhemoshi
 * @ClassName Test
 * @Description to do
 * @date 2021/12/1 16:54
 */
public class Test {
    public static void main(String[] args) {
        BuMen oneYiYuan = new BuMen("第一医院");
        BuMen neiKe = new BuMen("内科");
        BuMen waiKe = new BuMen("外科");
        BuMen xiaoHuaNeiKe = new BuMen("消化内科");
        BuMen xinXueGuanKe = new BuMen("心血管科");
        BuMen guKe = new BuMen("骨科");
        BuMen shenJingWaiKe = new BuMen("神经外科");
        YiSheng yiSheng1 = new OneYiSheng("1医生");
        YiSheng yiSheng2 = new OneYiSheng("2医生");
        YiSheng yiSheng3 = new OneYiSheng("3医生");
        YiSheng yiSheng4 = new OneYiSheng("4医生");
        YiSheng yiSheng5 = new OneYiSheng("5医生");
        xiaoHuaNeiKe.add(yiSheng1);
        xiaoHuaNeiKe.add(yiSheng2);
        xinXueGuanKe.add(yiSheng3);
        guKe.add(yiSheng4);
        shenJingWaiKe.add(yiSheng5);
        neiKe.add(xiaoHuaNeiKe);
        neiKe.add(xinXueGuanKe);
        waiKe.add(guKe);
        waiKe.add(shenJingWaiKe);
        oneYiYuan.add(neiKe);
        oneYiYuan.add(waiKe);
        oneYiYuan.print();
    }
}
